#include "circularqueue.h"

//["MyCircularQueue","enQueue","enQueue","enQueue","enQueue",
// "Rear","isFull","deQueue","enQueue","Rear"]
//[[3],[1],[2],[3],[4],[],[],[],[4],[]]

void test1(void)
{
	MyCircularQueue* obj=myCircularQueueCreate(3);
	int EnQueue1=myCircularQueueEnQueue(obj,1);
	int EnQueue2 = myCircularQueueEnQueue(obj, 2);
	int EnQueue3 = myCircularQueueEnQueue(obj, 3);
	int EnQueue4 = myCircularQueueEnQueue(obj, 4);
	int Rear1 = myCircularQueueRear(obj);
	int full = myCircularQueueIsFull(obj);
	int DeQueue=myCircularQueueDeQueue(obj);
	int EnQueue5 = myCircularQueueEnQueue(obj, 4);
	int Rear2 = myCircularQueueRear(obj);
}

int main()
{
	test1();
	return 0;
}